﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using Chowpoo.Util;

namespace CourseSystem.Core.Util
{
    public class NotThisValueAttrAttribute : ValidationAttribute
    {
        public override bool IsValid(object value)
        {
            return value.CheckInt(0) != NotValue;
        }

        public int NotValue;
    }

}
